package com.it.archives.controller;

import com.it.archives.service.CommodityApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@ResponseBody
@RestController
public class CommodityApiController {

    @Autowired
    CommodityApiService apiService;

    @RequestMapping("/queryCommodity")
    public Object queryCommodity(String id){

        try {
            return apiService.queryCommodity(id);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
